<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:p="http://primefaces.org/ui"
	xmlns:rich="http://richfaces.org/rich">
<ui:composition template="/WEB-INF/templates/plantillaAdmin.xhtml">
	<ui:define name="menu">
		<h:panelGroup>
			<h:form>
				<table width="900" cellpadding="0" cellspacing="0">
					<tr>
						<td width="600" height="40">
							<table width="600" cellpadding="0" cellspacing="0">
								<tr>
									<td class="tabInactivo" width="150" height="40"><h:commandLink
											action="irServidores" value="#{msg.servidores}" /></td>
									<td class="tabInactivo" width="150"><h:commandLink
											action="irUsuarios" value="#{msg.usuarios}" /></td>
									<td class="tabActivo" width="150"><h:commandLink
											action="irTipos" value="#{msg.tipos}" /></td>
									<td width="150" style="border-bottom: 1px solid #2779AA"></td>
								</tr>
							</table>
						</td>
						<td width="300" style="border-bottom: 1px solid #2779AA"></td>
					</tr>
				</table>
			</h:form>
		</h:panelGroup>
	</ui:define>
	<ui:define name="content">
		<f:view>
			<h1>#{msg.tiposTitulo}</h1>
			<div class="texto">
				<h:outputText value="#{msg.tiposTexto1}" />
			</div>
			<br/>
			<rich:panel style="border:0;">

				<h:form action="#{tipoBean.cambiarHabilitado}" id="formulario">
					<p:pickList value="#{tipoBean.tipos}" var="tipo" iconOnly="true"
						effect="drop" itemValue="#{tipo}" itemLabel="#{tipo}"
						showSourceControls="false" showTargetControls="false"
						onTransfer="document.getElementById('botonSubmit').onclick();">
						<f:facet name="sourceCaption">#{msg.tiposHabilitados}</f:facet>
						<f:facet name="targetCaption">#{msg.tiposDeshabilitados}</f:facet>
					</p:pickList>
					<t:commandLink style="display:none; visibility: hidden;"
						forceId="true" id="botonSubmit"
						action="#{tipoBean.cambiarHabilitado}" />


				</h:form>
			</rich:panel>
		</f:view>
	</ui:define>
</ui:composition>
</html>
